package tw.com.hitevision.whiteboard.android.retrofit.response.youtube;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class VideoStatistics implements Parcelable {
    @SerializedName(value = "viewCount")
    public String viewCount;
    @SerializedName(value = "likeCount")
    public String likeCount;
    @SerializedName(value = "dislikeCount")
    public String dislikeCount;
    @SerializedName(value = "favoriteCount")
    public String favoriteCount;
    @SerializedName(value = "commentCount")
    public String commentCount;

    protected VideoStatistics(Parcel in) {
        viewCount = in.readString();
        likeCount = in.readString();
        dislikeCount = in.readString();
        favoriteCount = in.readString();
        commentCount = in.readString();
    }

    public static final Creator<VideoStatistics> CREATOR = new Creator<VideoStatistics>() {
        @Override
        public VideoStatistics createFromParcel(Parcel in) {
            return new VideoStatistics(in);
        }

        @Override
        public VideoStatistics[] newArray(int size) {
            return new VideoStatistics[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(viewCount);
        dest.writeString(likeCount);
        dest.writeString(dislikeCount);
        dest.writeString(favoriteCount);
        dest.writeString(commentCount);
    }
}
